﻿#pragma once

#include "common.h"
#include "settings.h"
#include "seqbase/graphics.h"
#include "vg/primitives.h"
#include "ui/controls.h"

namespace anip
{
	namespace editor
	{
		class ResourceView : public EditorWindow
		{
		private:
			ui::ListView* _view = nullptr;
			SDirectory* _currentDir = nullptr;
			ui::MenuBar::Item* _goUpBtn = nullptr;

			void createRenameBoxFor(ui::ListView::Item& i);

		public:
			ResourceView(Container* parent, 
				SDirectory& dir = DataStore::root, 
				invec2 size = { 500, 500 });

			SDirectory& getCurrentDir() { return *_currentDir; }
			void navagateTo(SDirectory& dir);
			void updateView();
		};
	}
}